import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [

    {
      path: '/',
      name: 'home',
      // component: () => import("../views/Dashboard.vue")
      // component: () => import("../views/task_log/list.vue")
      component: () => import("../views/Login.vue")
      
    },
    {
      path: '/login',
      name: 'login',
      component: () => import("../views/Login.vue")
    },

    {
      path: '/tasklog/list',
      name: 'tasklog_list',
      component: () => import("../views/task_log/list.vue")
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: () => import("../views/task_log/list.vue")
      // component: () => import("../views/Dashboard.vue")
    },
    {
      path: '/group/list',
      name: 'group_list',
      component: () => import("../views/group/list.vue")
    },
    {
      path: '/group/detail',
      name: 'group_detail',
      component: () => import("../views/group/detail.vue")
    },
    {
      path: '/device/list',
      name: 'device_list',
      component: () => import("../views/device/list.vue")
    },
    {
      path: '/task/list',
      name: 'task_list',
      component: () => import("../views/task/list.vue")
    },
    {
      path: '/task/detail',
      name: 'task_detail',
      component: () => import("../views/task/detail.vue")
    },
    {
      path: '/product/list',
      name: 'product_list',
      component: () => import("../views/product/list.vue")
    },
    {
      path: '/product/detail',
      name: 'product_detail',
      component: () => import("../views/product/detail.vue")
    },
    {
      path: '/config/list',
      name: 'config_list',
      component: () => import("../views/config/list.vue")
    },
    {
      path: '/config/create',
      name: 'config_create',
      component: () => import("../views/config/create.vue")
    },

  
  ]
})

export default router
